﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CPPProject.CPP
{
    /// <summary>
    /// 角色菜单权限
    /// </summary>
    [Table("CPPRoleMenu")]
    public class CPPRoleMenu : Entity<int>, IHasCreationTime, IMustHaveTenant, IModificationAudited
    {
        public int TenantId { get; set; }
        public DateTime CreationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [MaxLength(500)]
        public string Path { get; set; }
        /// <summary>
        /// 组件
        /// </summary>
        [MaxLength(500)]
        public string Component { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [MaxLength(100)]
        public string Icon { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int OrderNum { get; set; } = 0;
        public bool Hidden { get; set; }
        /// <summary>
        /// 上级菜单
        /// </summary>
        public int ParentId { get; set; }
    }
}
